home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Makefiles / app / specialrules.make < prev    next >
Text File  |  1993-02-12  |  1KB  |  35 lines

  1. ###############################################################################
  2. #  NeXT specialrules.make
  3. #  Copyright 1992, NeXT Computer, Inc.
  4. #
  5. #  This makefile provides a special set of compilation rules useful in 
  6. #  standalone bundles and palettes.  These rules are necessary to allow 
  7. #  the build of bundles and palettes to be driven by common.make as part of a
  8. #  larger hierarchy of subprojects, as well as be done when bundle.make or
  9. #  palette.make are the top-level Makefiles in the standalone case.
  10. #  
  11. ###############################################################################
  12.  
  13. DEFAULT_CFLAGS = $(ALL_CFLAGS) -I$(SYM_DIR) 
  14.  
  15. # Rewrite various rules to allow -g for the standalone case
  16.  
  17. .c.o:
  18.     $(CC) $(DEFAULT_CFLAGS) -c $*.c -o $(OFILE_DIR)/$*.o
  19. .m.o:
  20.     $(CC) $(DEFAULT_CFLAGS) -c $*.m -o $(OFILE_DIR)/$*.o
  21. .C.o:
  22.     $(CC) $(DEFAULT_CFLAGS) $(C++CFLAGS) -c $*.C -o $(OFILE_DIR)/$*.o
  23. .cc.o:
  24.     $(CC) $(DEFAULT_CFLAGS) $(C++CFLAGS) -c $*.cc -o $(OFILE_DIR)/$*.o
  25. .cxx.o:
  26.     $(CC) -ObjC++ $(DEFAULT_CFLAGS) $(C++CFLAGS) -c $*.cxx -o $(OFILE_DIR)/$*.o
  27.  
  28. .psw.o: $(SYM_DIR)
  29.     $(PSWRAP) $(PSWFLAGS) -a -h $(SYM_DIR)/$*.h -o $(SYM_DIR)/$*.c $*.psw
  30.     $(CC) $(DEFAULT_CFLAGS) -c $(SYM_DIR)/$*.c -o $(OFILE_DIR)/$*.o
  31. .pswm.o: $(SYM_DIR)
  32.     $(PSWRAP) $(PSWFLAGS) -a -h $(SYM_DIR)/$*.h -o $(SYM_DIR)/$*.m $*.pswm
  33.     $(CC) $(DEFAULT_CFLAGS) -c $(SYM_DIR)/$*.m -o $(OFILE_DIR)/$*.o
  34.  
  35.